﻿using DataBaseLib.Entities.BaseEntity;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataBaseLib.Entities
{
    [SugarTable("CustomerInfo")]//设置数据库名称，当类库名称和数据库不一致是可以通过别名统一
    public class CustomerInfo : BaseModel
    {
        /// <summary>
        /// 公司
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", ColumnDescription = "公司")]
        public string Company { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", ColumnDescription = "姓名")]
        public string Name { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", ColumnDescription = "电话")]
        public string Telephone { get; set; }
        /// <summary>
        /// 邮件
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)", ColumnDescription = "邮件")]
        public string Email { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(250)", ColumnDescription = "标签")]
        public string Tag { get; set; }

    }
}
